﻿using Azylee.Core.AppUtils;
using Azylee.Core.LogUtils.SimpleLogUtils;
using Azylee.Core.VersionUtils;
using Azylee.Core.WindowsUtils.InfoUtils;
using Azylee.WinformMan.ManagerUtils;
using Azylee.YeahWeb.BaiDuWebAPI.IPLocationAPI;
using BigClipboard.Models;
using System;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;

namespace JustMetClient.Commons
{
    public static partial class R
    {
        internal static MainForm MainUI;
        internal static string AppName = "JustMetClient.exe";
        internal static Log Log = new Log(true);
        internal static Version Version = VersionTool.Format(Application.ProductVersion);
        internal static string AppId = "";
        internal static bool ICanWriteFile = false;//是否可以写出文件（检测权限）
        internal static long RunTimes = 0;//程序运行次数
        internal static string MachineName = Environment.MachineName;
        internal static IPLocationModel IPLocation = null;
        internal static long AppSize = 0;//App占用空间情况
        internal static long AppRam = 0;
        internal static bool IsAdministrator = PermissionTool.IsAdministrator();
        internal static FormManTool FormMan = new FormManTool();//窗体管理器
        internal static DateTime StartTime = DateTime.Now;//程序启动时间
        internal static DateTime PowerTime = ComputerInfoTool.StartTime();//系统启动时间（存在误差，同systeminfo）
        internal static Color BackColor = ColorTranslator.FromHtml("#2f4f4f");
        internal static ClipboardData CurrentClipboardData;//当前剪切板中的数据
        internal static string EmailAddress = "";


        internal static string Account = "";
        internal static string Password = "";
        internal static string StrategyGroup = "";
        internal static string UserName = ComputerInfoTool.UserName();
        internal static string UserDomainName = ComputerInfoTool.UserDomainName();
        internal static string Dept = "";//用户部门
        internal static string DeptNo = "";//用户部门编号


    }
}
